package com.skt.service;

import com.skt.domain.DTO.request.AddToCartRequest;
import com.skt.domain.VO.CartVO;

import javax.validation.Valid;

public interface CartService {

    /**
     * 创建或获取购物车
     * @return
     */
    CartVO createOrGetCart();


    /**
     * 添加购物车
     * @param addRequest
     * @return
     */
    CartVO addToCart(@Valid AddToCartRequest addRequest);


    /**
     * 删除购物车
     * @param itemId
     */
    void removeFromCartItem(Long itemId);
}
